]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shell/app-usage: Fix app usages hash table leak on shutdown
authorSebastian Keller <skeller@gnome.org>
Sun, 1 Mar 2026 23:50:09 +0000 (00:50 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 2 Mar 2026 01:43:50 +0000 (01:43 +0000)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4098>

src/shell-app-usage.c

index a6edc271bd3c7d1a7c9ef2da98b6a400b89463e7..7f0b19710ecfcac9331b66cf7d33d84188d995d0 100644 (file)
@@ -334,6 +334,8 @@ shell_app_usage_finalize (GObject *object)
 
   g_object_unref (self->session_proxy);
 
+  g_clear_pointer (&self->app_usages, g_hash_table_destroy);
+
   G_OBJECT_CLASS (shell_app_usage_parent_class)->finalize(object);
 }